#include <iostream>

using namespace std;

class SEND;

// Class that will handle incoming data and send it to the server
class SEND
	{
	private:
		char txtData[255];
		int RTS;
	public:
		SEND();
		void handleText();
	};

//Constructor that sets all the values in the class to 0 when a new one is created
SEND::SEND()
{
	int i;
	
	RTS = 1;
	for(i=0;i<255;i++)
	{
		txtData[i] = '\0';
	}
}

//If ready to send is 0 will take data in, if RTS is 1 will send data to the server
void SEND::handleText()
{
	if(RTS == 0)
		cin.read(txtData, 254);
	else if(RTS == 1)
		cout << txtData;
}

//Initialises a new class and handles the text
int main()
{
	SEND data;
	data.handleText();
}